package com.hbzhit.modules.oss.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;

/**
 * 自定义文件存储配置类
 * @author DING
 */
@Data
@Component("ossProperties")
@ConfigurationProperties(prefix = "hbzhit.oss")
public class OssProperties {
    /**文件上传*/
    private FileUploadConfig fileUploadConfig;

    /**文件上传配置*/
    @Data
    public static class FileUploadConfig {
        /**文件上传路径(斜杠结尾)*/
        @NotNull private String path;
    }
}
